<?php
/**
 * Created by PhpStorm.
 * User: fenfen
 * Date: 2017/1/24
 * Time: 9:54
 */

namespace bc\controller;


use bc\model\ProductsampleModel;

class SampleController extends WxOAuthController
{
    /**
     *
     * @var string OAuth::SNSAPI_USERINFO|OAuth::SNSAPI_BASE
     */
    protected $html;

    public function init()
    {
        parent::init();
    }

    public function getHtmlFromPid($product_id)
    {
        //获取页面展示数据
        $ProductsampleM = new ProductsampleModel();
        $this->html=$ProductsampleM->getRow(['product_id'=>$product_id]);

    }
}